package com.ziyueyuwen.xiniao.bean.group;

import com.ziyueyuwen.xiniao.enums.MessageTypeEnum;

/**
 * @author wancheng  on 2019/1/8.
 */
public class MessageDetailGroup {

    private String userAccount;
    private MessageTypeEnum type;

    public MessageDetailGroup() {
    }

    public MessageDetailGroup(String userAccount, MessageTypeEnum type) {
        this.userAccount = userAccount;
        this.type = type;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MessageDetailGroup that = (MessageDetailGroup) o;

        if (!userAccount.equals(that.userAccount)) return false;
        return type == that.type;

    }

    @Override
    public int hashCode() {
        int result = userAccount.hashCode();
        result = 31 * result + type.hashCode();
        return result;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public MessageTypeEnum getType() {
        return type;
    }

    public void setType(MessageTypeEnum type) {
        this.type = type;
    }
}
